package com.speedricemanager.other.utils;

import com.vondear.rxtools.RxDataUtils;

import java.text.DecimalFormat;


public class NumberUtils {
    public static String getNumber(double number){
        DecimalFormat    df   = new DecimalFormat("#################0.00");
        return df.format(number);
    }

    public static String getNumberOne(double number){
        DecimalFormat    df   = new DecimalFormat("#################0.0");
        return df.format(number);
    }


    public static int jin( int a , int b){
        int c = (int) (((double)a)/b);
        int d = (int) Math.ceil(c);
        return d;
    }

    //格式化手机中间4位
    public static String formatPhone(String phoneNum){
        return RxDataUtils.hideMobilePhone4(phoneNum);
    }

    //格式化银行卡
    public static String formatBank(String bankName){
        return RxDataUtils.formatCard(bankName);
    }





}
